import request from '@/utils/request'

// 查询环保巡检列表
export function listOpmEnvInspect(query) {
  return request({
    url: '/environment/opmEnvInspect/list',
    method: 'get',
    params: query
  })
}

// 查询环保巡检详细
export function getOpmEnvInspect(id) {
  return request({
    url: '/environment/opmEnvInspect/' + id,
    method: 'get'
  })
}

// 新增环保巡检
export function addOpmEnvInspect(data) {
  return request({
    url: '/environment/opmEnvInspect',
    method: 'post',
    data: data
  })
}

// 修改环保巡检
export function updateOpmEnvInspect(data) {
  return request({
    url: '/environment/opmEnvInspect',
    method: 'put',
    data: data
  })
}

// 删除环保巡检
export function delOpmEnvInspect(id) {
  return request({
    url: '/environment/opmEnvInspect/' + id,
    method: 'delete'
  })
}
